<?php
namespace Apps\Model;
use Phalcon\Mvc\Model;

class Area extends Model{

	public $id;
	public $name;

	public function columnMap(){
		return array(
			'id'   =>'id',
			'name' =>'name'
			);
	}

	public function initialize(){
		$this ->setSource('dg_area');
		$this ->hasMany('id','Apps\Model\Bin','area_id');
	}

	// public function getBin($parameters=null){
	// 	return $this ->getRelated('Apps\Model\Bin',$parameters);
	// }
}